#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>


int main()
{
	FILE* p = fopen("test.txt", "w");
	if (NULL == p)
	{
		perror("fopen");
		return 1;
	}
	for (char i = 'a'; i <= 'z'; i++)
	{
		fputc(i, p);
	}
	fclose(p);
	p = NULL;
	FILE* p = fopen("test.txt", "r");
	if (p = NULL)
	{
		perror("fopen");
	}
	return 0;
}




































